import { IS_SHOW_TABBAR } from '../../constant/type'

//初始化
const initState = true

export default function isShowTarbar(preState=initState,action){
    const {type,data}=action 
    switch(type){
        case IS_SHOW_TABBAR:
            return data
        default:
            return preState
    }
}